Contribution org.nuxeo.ecm.agenda.gadgets--gadget
In component org.nuxeo.ecm.agenda.gadgets
org.nuxeo.ecm.agenda.gadgets
inside nuxeo-agenda-5.8.jar
This contribution is part of XML component Documentation
This gadget displays incoming and past events readable by the current User. Added into a SocialWorkspace, it displays only SocialWorkspace events.
You have the possibility to display incoming events from: - a day - a week - a month
How to include the agenda gadget in a JSF context:
<div class="gadget-agenda threeQuarterWidth"/>
<script type="text/javascript">
jQuery('.gadget-agenda').openSocialGadget({
baseURL: '#{baseURL}',
language: '#{localeSelector.language}',
gadgetDefs: [
{ specUrl: '#{gadgetsBaseURL}/site/gadgets/agenda/agenda.xml',
title: 'My most liked document',
userPrefs: { },
displayTitleBar: false,
width: '100%'
}
]
});
</script>
How to include the agenda gadget in a WebEngine page:
<link
href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/>
<script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/>
<script
src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/>
<div class="gadget-agenda gadgets-gadget-chrome"/>
<script type="text/javascript">
$('.gadget-agenda').openSocialGadget({
baseURL: '${contextPath}' + '/',
language: '${Context.locale.language}',
gadgetDefs: [{
specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/agenda/agenda.xml',
userPrefs: { },
displayTitleBar: false,
width: '100%'
}]
});
</script>
Extension Point
Extension point gadget of component service.Contributed Items
XML Source
<extension point="gadget" target="org.nuxeo.opensocial.gadgets.service">
<documentation>
This gadget displays incoming and past events readable by the current User.
Added into a SocialWorkspace, it displays only SocialWorkspace events.
You have the possibility to display incoming events from:
- a day
- a week
- a month
How to include the agenda gadget in a JSF context:
<code>
<div class="gadget-agenda threeQuarterWidth"/>
<script type="text/javascript">
jQuery('.gadget-agenda').openSocialGadget({
baseURL: '#{baseURL}',
language: '#{localeSelector.language}',
gadgetDefs: [
{ specUrl: '#{gadgetsBaseURL}/site/gadgets/agenda/agenda.xml',
title: 'My most liked document',
userPrefs: { },
displayTitleBar: false,
width: '100%'
}
]
});
</script>
</code>
How to include the agenda gadget in a WebEngine page:
<code>
<link href="${contextPath}/css/opensocial/light-container-gadgets.css" rel="stylesheet"/>
<script src="${contextPath}/opensocial/gadgets/js/rpc.js?c=1" type="text/javascript"/>
<script src="${contextPath}/js/?scripts=jquery.js|opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js" type="text/javascript"/>
<div class="gadget-agenda gadgets-gadget-chrome"/>
<script type="text/javascript">
$('.gadget-agenda').openSocialGadget({
baseURL: '${contextPath}' + '/',
language: '${Context.locale.language}',
gadgetDefs: [{
specUrl : '${Runtime.getProperty('nuxeo.loopback.url')}/site/gadgets/agenda/agenda.xml',
userPrefs: { },
displayTitleBar: false,
width: '100%'
}]
});
</script>
</code>
</documentation>
<internalGadget disabled="false" name="agenda">
<mountPoint>/agenda</mountPoint>
<entryPoint>agenda.xml</entryPoint>
<category>gadget.category.utilities</category>
<icon>gadget-agenda.png</icon>
</internalGadget>
</extension>